package com.shuzijun.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class JacksonCard {
    private String cardName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cardTime;

    public JacksonCard() {
    }

    public JacksonCard(String cardName, Date cardTime) {
        this.cardName = cardName;
        this.cardTime = cardTime;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public Date getCardTime() {
        return cardTime;
    }

    public void setCardTime(Date cardTime) {
        this.cardTime = cardTime;
    }

    @Override
    public String toString() {
        return "JacksonCard{" +
                "cardName='" + cardName + '\'' +
                ", cardTime=" + cardTime +
                '}';
    }
}
